
"""
定义变量
num = 5;
不可变变量
"""
num = 5;
print(num)


"""
1.严格区分大小写
2.不能以数字开头
3.不能用保留关键字
"""

my_name = 'laoxiao'
age = 41
sex = '男'
print(my_name)
print(age)
print(sex)

# PEP8规范：Python代码编写规范

name01 = name02 = '孙悟空'
print(name01)

a1,a2   = 100,200
print(a1,a2)


# 变量的类型  python可以自动检测变量类型
num1 = 10
print(type(num1))

num2 = 0.12
num3 = 3.1415926

num4:float = 9.8 # 明确指定变量类型

b01 = True
b02 = False
print(b01)
print(b02)
print(type(b01))

s01 = 'abc'
s02 = 'hello world'
print(s01)
print(s02)

print(type(s01))
